package com.pkk.penguin.components.starter.rpc.crypto;

import com.pkk.penguin.components.starter.rpc.crypto.configure.InitCryptoService;
import com.pkk.penguin.components.starter.rpc.crypto.handler.EncryptResponseHandler;
import com.pkk.penguin.components.starter.rpc.crypto.properties.SecretProperties;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

/**
 * 开启全局统一response加密
 * @author luffy
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@EnableConfigurationProperties(SecretProperties.class)
@Import({InitCryptoService.class, EncryptResponseHandler.class})
public @interface EnableEncryptResponse {
}
